// vertex_coloring.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include "ReaderWriter.h"
#include "Algorithm.h"



int _tmain()
{
	Graph graph(0);
	if(ReaderWriter::graph_read(graph) == false){ 
		return -1;
	}
	
	time_t start, end;
	Algorithm alg;
	std::cout << "Algoritm in process, please wait...\n";
	start = clock();
	alg.color(graph);
	end = clock();
	std::cout << "Algoritm finished\n";
	printf ("Spent time: %2.2f seconds\n", (double)(end - start) / CLOCKS_PER_SEC);

	ReaderWriter::graph_write(graph);
	return EXIT_SUCCESS;
}

